#ifndef _SER_H_
#define _SER_H_
#include "myinclude.h"
typedef struct parg{
	int pg_sockfd;
	sqlite3 *pg_mydb;
}parg_t;

extern void * func(void * p);
extern int server_register(prol_t * temp,sqlite3 * db);
extern int server_login(prol_t * temp,sqlite3 * db,char * name,char * flag);
extern void server_error(prol_t * temp);
extern int server_promote(prol_t * temp,sqlite3 * db,char *name,int sockfd,char * flag);
extern int server_find(prol_t * temp,sqlite3 * db,char *name,int sockfd,char * flag);
extern int server_chpasswd(prol_t * temp,sqlite3 * db,char *name,int sockfd,char * flag);
extern int server_delete(prol_t * temp,sqlite3 * db,char *name,int sockfd,char * flag);
extern int server_delself(prol_t * temp,sqlite3 * db,char *name,int sockfd,char * flag);
extern void update_data(sqlite3 * db,char * name,char * flag);

#endif
